package com.lfc.myframe.ui.Fg04

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.lfc.myframe.R
import com.lfc.myframe.base.BaseFg
import com.lfc.myframe.databinding.FragmentMineBinding
import com.lfc.myframe.share.Const.ARG_PARAM1
import com.lfc.myframe.share.Const.ARG_PARAM2

/**
 * A simple [Fragment] subclass.
 *
 * Use the [MineFG.newInstance] factory method to
 * create an instance of this fragment.
 */
class MineFG : BaseFg<FragmentMineBinding>() {

    companion object {
        /**
         *
         * @param param1 Parameter 1.
         * @param param2 Parameter 2.
         * @return A new instance of fragment MineFG.
         */
        // TODO: Rename and change types and number of parameters
        @JvmStatic
        fun newInstance(param1: String = "", param2: String = "") =
            MineFG().apply {
                arguments = Bundle().apply {
                    putString(ARG_PARAM1, param1)
                    putString(ARG_PARAM2, param2)
                }
            }
    }

    // TODO: Rename and change types of parameters
    private var param1: String? = null
    private var param2: String? = null
    override fun ReGetData() {

    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        arguments?.let {
            param1 = it.getString(ARG_PARAM1)
            param2 = it.getString(ARG_PARAM2)
        }
    }


    override fun initView(view: View) {
    }


    override fun lazyLoad() {
        getData(false)
    }

    override fun getData(isLoad: Boolean) {
        super.getData(isLoad)

    }

    override val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> FragmentMineBinding
        get() = FragmentMineBinding::inflate
}
